<?php

namespace App\Http\Controllers\Backend;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class VisitorsController extends Controller
{
    public function login(Request $request)
    {
        return response()->json(['code' => 0, 'data' => ['name' => 'Super Admin']]);
    }

    public function show(Request $request)
    {
        return response()->json(['code' => 0, 'data' => ['name' => 'Super Admin']]);
    }

    public function logout(Request $request)
    {
        return response()->json(['code' => 0, 'data' => [], 'message' => '用户退出成功']);
    }
}
